package net.suncaper.mvc.model.domain;

/**
 * 用户信息实体类
 */
public class User {
    /**
     * 用户账号
     */
    private String userId;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    private String password;
    
    /**
     * 用户头像URL
     */
    private String avatar;
    
    /**
     * 用户状态：0-禁用，1-正常，2-冻结
     */
    private Integer status;
    
    /**
     * 用户性别：0-女，1-男，2-保密
     */
    private Integer gender;
    
    /**
     * 用户年龄
     */
    private Integer age;
    
    /**
     * 用户创建时间
     */
    private java.util.Date createTime;

    // 无参构造函数
    public User() {
    }

    // 全参构造函数
    public User(String userId, String email, String password, String avatar, Integer status, 
                Integer gender, Integer age, java.util.Date createTime) {
        this.userId = userId;
        this.email = email;
        this.password = password;
        this.avatar = avatar;
        this.status = status;
        this.gender = gender;
        this.age = age;
        this.createTime = createTime;
    }

    // Getter 和 Setter 方法
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getAvatar() {
        return avatar;
    }
    
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public Integer getGender() {
        return gender;
    }
    
    public void setGender(Integer gender) {
        this.gender = gender;
    }
    
    public Integer getAge() {
        return age;
    }
    
    public void setAge(Integer age) {
        this.age = age;
    }
    
    public java.util.Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }
}